table {
    border-collapse: collapse;
}

table,
th,
td {
    border: 1px solid black;
    min-width: 5em;
}

td {
    text-align: center;
}

.paper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.paper-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.paper-head h1 {
    margin: 0;
    color: hsl(306, 40%, 25%);
    font-size: 1.8rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: hsl(306, 40%, 25%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: bold;
}

.btn:hover {
    background-color: hsl(306, 40%, 35%);
    transform: translateY(-1px);
}

.btn.delete {
    background-color: #ff4d4f;
}

.btn.delete:hover {
    background-color: #ff7875;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e8e8e8;
}

.table th {
    background-color: hsl(306, 40%, 25%);
    font-weight: 600;
    color: white;
}

.table tr:hover {
    background-color: hsl(306, 40%, 95%);
}

.table tr:nth-child(even) {
    background-color: hsl(306, 40%, 98%);
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    font-size: 1.2rem;
    color: #666;
}

.error {
    color: #ff4d4f;
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .paper {
        margin: 1rem;
        padding: 1rem;
    }
    
    .paper-head {
        flex-direction: column;
        gap: 1rem;
    }
    
    .table {
        display: block;
        overflow-x: auto;
    }
}